package com.crawData.controller;

import com.crawData.service.CrawDataLoginManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("crawDataLogin/")
@Api(tags = "数据爬取登录管理")
@Slf4j
public class CrawDataLoginManagerController {

    @Autowired
    private CrawDataLoginManagerService crawDataLoginManagerService;


    /**
     * 登录抖音
     * @return
     */
    @PostMapping("login")
    @ApiOperation(value = "登录抖音")
    public String login(@RequestBody HashMap<String,String> parms) {
        return crawDataLoginManagerService.login(parms);
    }
}
